﻿<%@ Page Language="C#" Theme="default" AutoEventWireup="true" CodeBehind="AddEditAdvPostion.aspx.cs" Inherits="Web.Cms.Advertistment.AddEditAdvPostion" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Quản lý nhóm vị trí banner</title>
</head>
<body>
    <form id="form1" runat="server">
    <p class="heading"><asp:Label ID="lblUpdateStatus" runat="server"></asp:Label></p>
    <table width="100%" cellpadding="7" cellspacing="7">
        <tr>
            <td align="center" style="display:none;">
                <strong>Chuyên mục:</strong>
                <br />
                <asp:ListBox ID="lstZones" runat="server" Width="250px" Height="300" SelectionMode="Multiple">
                    <asp:ListItem Value="0">---------------------</asp:ListItem>
                </asp:ListBox>
            </td>
            <td valign="top">
                <table border="0" cellpadding="2" cellspacing="2" width="100%">
                    <tr>                        
                        <td>
                            <asp:TextBox ID="txtID" runat="server" Enabled="False" Width="61px" Visible="false"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">
                            <strong>Tên nhóm quảng cáo:</strong></td>
                        <td align="left">
                            <asp:TextBox ID="txtName" onfocus="setBKColor(event);" onblur="reSetBKColor(event);"
                                CssClass="inputRequired" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Không được để trống"
                                ControlToValidate="txtName" ForeColor="Red">
                            </asp:RequiredFieldValidator></td>
                    </tr>
                    <tr style="display: none;">
                        <td align="right">
                            <strong>Kiểu hiển thị:</strong>
                        </td>
                        <td align="left">
                            <asp:RadioButtonList ID="rdoShowMode" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem onclick="$('#trDelay').hide()" Value="3">Độc quyền</asp:ListItem>
                                <asp:ListItem onclick="$('#trDelay').show()" Value="1">Xoay vòng</asp:ListItem>
                                <asp:ListItem Selected="True" onclick="$('#trDelay').show()" Value="2">Danh sách</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr id="trDelay" style="display: none;" runat="server">
                        <td align="right" style="height: 28px">
                            <strong>Thời gian hiển thị:</strong>
                        </td>
                        <td align="left" style="height: 28px">
                            <asp:TextBox ID="txtTimeDelay" runat="server" Text="0"></asp:TextBox>(tính bằng miligiay)
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <strong>Vị trí quảng cáo:</strong>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="dropPositions" runat="server" Width="200">
                            </asp:DropDownList>
                        </td>
                    </tr>                   
                    <tr>
                        <td align="right">
                            <strong>Kích thước: </strong>
                        </td>
                        <td align="left">
                            rộng
                            <asp:TextBox onfocus="setBKColor(event);" onblur="reSetBKColor(event);" CssClass="inputRequired"
                                onkeypress="return isNumberKey(event)" ID="txtWidth" runat="server" Width="50"></asp:TextBox>
                            x cao
                            <asp:TextBox onfocus="setBKColor(event);" onblur="reSetBKColor(event);" CssClass="inputRequired"
                                onkeypress="return isNumberKey(event)" ID="txtHeight" runat="server" Width="50"></asp:TextBox>
                            px
                        </td>
                    </tr>
                    <tr>
                        <td align="right" valign="top">
                            <strong>Mô tả:</strong></td>
                        <td valign="top" align="left">
                            <asp:TextBox ID="txtDescription" runat="server" Height="50px" TextMode="MultiLine"
                                Width="250"></asp:TextBox></td>
                    </tr>
                    <tr><td></td></tr>
                    <tr>
                        <td>
                        </td>
                        <td colspan="2">
                           <asp:LinkButton ID="btnAdd" runat="server" SkinID="admin-ButtonInsert" OnClick="btnAdd_Click" />  
                            <asp:LinkButton ID="btnUpdate" runat="server" SkinID="admin-ButtonUpdate" OnClick="btnUpdate_Click" /> 
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
